package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysHomeownerPropertyMapper;
import com.ruoyi.system.domain.SysHomeownerProperty;
import com.ruoyi.system.service.ISysHomeownerPropertyService;

/**
 * 房东房源id关联表Service业务层处理
 * 
 * @author ssd
 * @date 2024-03-28
 */
@Service
public class SysHomeownerPropertyServiceImpl implements ISysHomeownerPropertyService 
{
    @Autowired
    private SysHomeownerPropertyMapper sysHomeownerPropertyMapper;

    /**
     * 查询房东房源id关联表
     * 
     * @param homeownerId 房东房源id关联表主键
     * @return 房东房源id关联表
     */
    @Override
    public SysHomeownerProperty selectSysHomeownerPropertyByHomeownerId(Long homeownerId)
    {
        return sysHomeownerPropertyMapper.selectSysHomeownerPropertyByHomeownerId(homeownerId);
    }

    /**
     * 查询房东房源id关联表列表
     * 
     * @param sysHomeownerProperty 房东房源id关联表
     * @return 房东房源id关联表
     */
    @Override
    public List<SysHomeownerProperty> selectSysHomeownerPropertyList(SysHomeownerProperty sysHomeownerProperty)
    {
        return sysHomeownerPropertyMapper.selectSysHomeownerPropertyList(sysHomeownerProperty);
    }

    /**
     * 新增房东房源id关联表
     * 
     * @param sysHomeownerProperty 房东房源id关联表
     * @return 结果
     */
    @Override
    public int insertSysHomeownerProperty(SysHomeownerProperty sysHomeownerProperty)
    {
        return sysHomeownerPropertyMapper.insertSysHomeownerProperty(sysHomeownerProperty);
    }

    /**
     * 修改房东房源id关联表
     * 
     * @param sysHomeownerProperty 房东房源id关联表
     * @return 结果
     */
    @Override
    public int updateSysHomeownerProperty(SysHomeownerProperty sysHomeownerProperty)
    {
        return sysHomeownerPropertyMapper.updateSysHomeownerProperty(sysHomeownerProperty);
    }

    /**
     * 批量删除房东房源id关联表
     * 
     * @param homeownerIds 需要删除的房东房源id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysHomeownerPropertyByHomeownerIds(Long[] homeownerIds)
    {
        return sysHomeownerPropertyMapper.deleteSysHomeownerPropertyByHomeownerIds(homeownerIds);
    }

    /**
     * 删除房东房源id关联表信息
     * 
     * @param homeownerId 房东房源id关联表主键
     * @return 结果
     */
    @Override
    public int deleteSysHomeownerPropertyByHomeownerId(Long homeownerId)
    {
        return sysHomeownerPropertyMapper.deleteSysHomeownerPropertyByHomeownerId(homeownerId);
    }
}
